
<!-- main container -->
<div class="content">

    <div class="container-fluid">
        <div id="pad-wrapper" class="new-user">
            <div class="row-fluid header">
                <h3>Create a new user</h3>
            </div>

            <div class="row-fluid form-wrapper">
                <!-- left column -->
                <div class="span9 with-sidebar">
                    <div class="container">


                        <?php $form = \yii\bootstrap\ActiveForm::begin([
                                'options'=>['class'=>'new_user_form inline-input'],
                            'fieldConfig'=>['template'=>'{input}{error}']
                        ])?>
                        <?= $form->field($model,'adminuser')->textInput(['class'=>'span9','placeholder'=>'管理员姓名'])?>
                        <?=$form->field($model,'adminemail')->textInput(['class'=>'span9','placeholder'=>'管理员邮箱'])?>
                        <?=$form->field($model,'adminpass')->passwordInput(['class'=>'span9','placeholder'=>'管理员密码'])?>
                        <?=$form->field($model,'checkpass')->passwordInput(['class'=>'span9','placeholder'=>'确认密码'])?>
                        <span class="text-danger span3 ">
                        <?php
                        if(Yii::$app->session->hasFlash('info'))
                        {
                            echo Yii::$app->session->getFlash('info');
                        }
                        ?>
                        <?= \yii\helpers\Html::submitButton('创建',['class'=>'span4 btn btn-primary'])?>
                        <?= \yii\helpers\Html::resetButton('取消',['class'=>'span4 btn btn-danger'])?>
                        <?php \yii\bootstrap\ActiveForm::end();?>
                        </span>
                    </div>
                </div>

                <!-- side right column -->
                <div class="span3 form-sidebar pull-right">
                    <div class="btn-group  btn-primary toggle-inputs hidden-tablet">
                        <button class="glow left active" data-input="inline">INLINE INPUTS</button>
                        <button class="glow right" data-input="normal">NORMAL INPUTS</button>
                    </div>
                    <div class="alert alert-info hidden-tablet">
                        <i class="icon-lightbulb pull-left"></i>
                        Click above to see difference between inline and normal inputs on a form
                    </div>
                    <h6>Sidebar text for instructions</h6>
                    <p>Add multiple users at once</p>
                    <p>Choose one of the following file types:</p>
                    <ul>
                        <li><a href="#">Upload a vCard file</a></li>
                        <li><a href="#">Import from a CSV file</a></li>
                        <li><a href="#">Import from an Excel file</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>